
while True:
    money = float(input("请输入月收入金额："))
    if money <= 0.0:
        exit()
    elif money <= 800.0:
        print(f"你要上交的个人所得税是：0")
    elif money > 800.0 and money <= 4000.0:
        temp = money - 800.0
        print(f"你要上交的个人所得税是：{temp * 0.2}")
    elif money > 4000.0:
        temp = (money - money * 0.2) * 0.2
        print(f"你要上交的个人所得税是：{temp}")
    else:
        print("你自己去交吧")
